const express = require('express')
const app = express()

// 导入路由模块
const userRouter = require('./6.router')

// 配置中间件解析x-www-form-urlencoded格式的数据
app.use(express.urlencoded({ extended: false }))

// 注册路由模块中间件
app.use('/api', userRouter)



app.listen(80, () => {
  console.log('express server created  running at http://127.0.0.1');
})